import requests

from com.yh.likeshop.utils.utils import like_host


class User():

    # def login(self):
    #     user = {
    #         "account": "13778368805",
    #         "password": "admin123",
    #         "client": "2"
    #     }
    #     res = requests.post(like_host + "/api/account/login", json=user)
    #
    #     return res

    def login(self,account,password,client):
        user = {
            "account": account,
            "password": password,
            "client": client
        }
        res = requests.post(like_host + "/api/account/login", json=user)
        print(res)
        return res